package com.ztgf.order.models.bo.purchase;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 采购商品表SaveBO
 *
 * @author mxli
 * @Date 2021-05-17 10:16:25
 */
@Data
public class PurchaseCommoditySaveBO implements Serializable {

    @ApiModelProperty(value = "品牌id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long brandId;
    @ApiModelProperty(value = "品牌名称")
    private String brandName;
    @ApiModelProperty(value = "商品logourl")
    private String commodityLogoUrl;
    @ApiModelProperty(value = "商品名称")
    private String commodityName;
    @ApiModelProperty(value = "规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "数量")
    private Integer num;
    @ApiModelProperty(value = "质保时间：单位月")
    private Integer warranty;
    @ApiModelProperty(value = "收货人")
    private String receiveName;
    @ApiModelProperty(value = "收货人电话")
    private String receiveMobile;
    @ApiModelProperty(value = "收货人区域")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long receiveAreaId;
    @ApiModelProperty(value = "收货人区域")
    private String receiveAreaName;
    @ApiModelProperty(value = "收货人地址")
    private String receiveAddress;
    @ApiModelProperty(value = "预计收货时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//输入字符串
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date receiveExpectedTime;
    @ApiModelProperty(value = "是否可以接受预售商品0不接受，1接受")
    private Integer presaleStatus;
    @ApiModelProperty(value = "首款比例")
    private BigDecimal fristScale;
    @ApiModelProperty(value = "详情")
    private String remark;
    @ApiModelProperty(value = "pdf路径")
    private List<PurchaseCommodityPDFUrlBO> pdfUrl;
    @ApiModelProperty(value = "商品图片url")
    private String commodityImgUrl;

}